<template>
   <div>
       <p>
           <span>{{goodsName}}</span>
           <button @click="addFn(ind)">+</button>
           <span>{{count}}</span>
           <button @click="delFn(ind)">-</button>
       </p>
   </div>
</template>

<script>
export default {
   props: ["goodsName","count","ind"],
   methods: {
       addFn(ind){
           this.$emit("adds",ind)
       },
       delFn(ind){
        this.$emit("dels",ind)
       }
   }
}
</script>

<style>

</style>